<script setup>
import {ref} from "vue";

const props = defineProps({
  agent: {
    type: Object,
    required: true,
    default: () => ({
      id: null,
      name: '',
      agentType: '',
      note: '',
      icon: ''
    })
  }
});
const iframeSrc = ref(location.protocol + '//' + location.host + '/chat/' + props.agent.id); // 默认的iframe源
// iframeSrc.value = 'http://ai.zjtg.com.cn/chat/2'
</script>

<template>
<iframe :src="iframeSrc" style="width: 100%; height: 100%; border: none;"></iframe>
</template>

<style scoped lang="less">

</style>
